package com.ruoyi.boss.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 个人用户退款列表-新增对象 user_refund_list
 * 
 * @author rui
 * @date 2025-08-18
 */
public class UserRefundList extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 退款记录ID */
    private Long refundId;

    /** 逸品充值流水号 */
    @Excel(name = "逸品充值流水号")
    private String ypSerial;

    /** 用户名 */
    @Excel(name = "用户名")
    private String userName;

    /** 手机号码 */
    @Excel(name = "手机号码")
    private String phone;

    /** 用户类型 */
    @Excel(name = "用户类型")
    private Long userType;

    /** 充值时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "充值时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date rechargeTime;

    /** 充值本金金额（元） */
    @Excel(name = "充值本金金额", readConverterExp = "元=")
    private BigDecimal principalAmount;

    /** 充值赠送金额（元） */
    @Excel(name = "充值赠送金额", readConverterExp = "元=")
    private BigDecimal giftAmount;

    /** 第三方流水号 */
    @Excel(name = "第三方流水号")
    private String thirdPartySerial;

    /** 充值渠道 */
    @Excel(name = "充值渠道")
    private Long rechargeChannel;

    /** 行程订单号 */
    @Excel(name = "行程订单号")
    private String orderNumber;

    /** 退款原因 */
    @Excel(name = "退款原因")
    private String refundReason;

    /** 退款时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "退款时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date refundTime;

    /** 创建时间 */
    private Date createdAt;

    /** 更新时间 */
    private Date updatedAt;

    public void setRefundId(Long refundId) 
    {
        this.refundId = refundId;
    }

    public Long getRefundId() 
    {
        return refundId;
    }

    public void setYpSerial(String ypSerial) 
    {
        this.ypSerial = ypSerial;
    }

    public String getYpSerial() 
    {
        return ypSerial;
    }

    public void setUserName(String userName) 
    {
        this.userName = userName;
    }

    public String getUserName() 
    {
        return userName;
    }

    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }

    public void setUserType(Long userType) 
    {
        this.userType = userType;
    }

    public Long getUserType() 
    {
        return userType;
    }

    public void setRechargeTime(Date rechargeTime) 
    {
        this.rechargeTime = rechargeTime;
    }

    public Date getRechargeTime() 
    {
        return rechargeTime;
    }

    public void setPrincipalAmount(BigDecimal principalAmount) 
    {
        this.principalAmount = principalAmount;
    }

    public BigDecimal getPrincipalAmount() 
    {
        return principalAmount;
    }

    public void setGiftAmount(BigDecimal giftAmount) 
    {
        this.giftAmount = giftAmount;
    }

    public BigDecimal getGiftAmount() 
    {
        return giftAmount;
    }

    public void setThirdPartySerial(String thirdPartySerial) 
    {
        this.thirdPartySerial = thirdPartySerial;
    }

    public String getThirdPartySerial() 
    {
        return thirdPartySerial;
    }

    public void setRechargeChannel(Long rechargeChannel) 
    {
        this.rechargeChannel = rechargeChannel;
    }

    public Long getRechargeChannel() 
    {
        return rechargeChannel;
    }

    public void setOrderNumber(String orderNumber) 
    {
        this.orderNumber = orderNumber;
    }

    public String getOrderNumber() 
    {
        return orderNumber;
    }

    public void setRefundReason(String refundReason) 
    {
        this.refundReason = refundReason;
    }

    public String getRefundReason() 
    {
        return refundReason;
    }

    public void setRefundTime(Date refundTime) 
    {
        this.refundTime = refundTime;
    }

    public Date getRefundTime() 
    {
        return refundTime;
    }

    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }

    public void setUpdatedAt(Date updatedAt) 
    {
        this.updatedAt = updatedAt;
    }

    public Date getUpdatedAt() 
    {
        return updatedAt;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("refundId", getRefundId())
            .append("ypSerial", getYpSerial())
            .append("userName", getUserName())
            .append("phone", getPhone())
            .append("userType", getUserType())
            .append("rechargeTime", getRechargeTime())
            .append("principalAmount", getPrincipalAmount())
            .append("giftAmount", getGiftAmount())
            .append("thirdPartySerial", getThirdPartySerial())
            .append("rechargeChannel", getRechargeChannel())
            .append("orderNumber", getOrderNumber())
            .append("refundReason", getRefundReason())
            .append("refundTime", getRefundTime())
            .append("createdAt", getCreatedAt())
            .append("updatedAt", getUpdatedAt())
            .toString();
    }
}
